.edit-profile-form {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.photo-upload img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.upload-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.upload-btn:hover {
    background: var(--primary-color-hover);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-item input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9em;
}

.list-item .item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remove-btn {
    padding: 0px 10px;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #ff4d4f;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.4em;
    transition: all 0.3s;
}

.remove-btn:hover {
    background: #fff1f0;
    border-color: #ff4d4f;
}

.add-btn {
    padding: 8px;
    background: #f5f5f5;
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s;
}

.add-btn:hover {
    background: #e8e8e8;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.save-btn,
.cancel-btn {
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
}

.save-btn {
    font-size: 0.9em;
    background: var(--primary-color);
    color: white;
    border: none;
}

.cancel-btn {
    font-size: 0.9em;
    background: #f5f5f5;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* 学生档案列表样式 */
.student-profile-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 30px;
}

.student-profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 150px;
}

.student-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.student-profile-name {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--text-color);
    text-align: center;
}

.student-profile-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.student-profile-bio {
    color: #666;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.student-profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Keep other styles unchanged */
.detail-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-section h4 {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
}

.detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-item {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--text-color);
}

/* Responsive adjustment */
@media screen and (max-width: 768px) {
    .student-profile-card {
        flex-direction: column;
    }

    .student-profile-left {
        padding-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .student-profile-right {
        padding-top: 15px;
    }

    .student-profile-bio {
        text-align: center;
    }

    .student-profile-details {
        grid-template-columns: 1fr;
    }
}

/* Add card list style */
.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;  /* Card spacing */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.modal-content h2 {
    margin-top: 0;
    color: #333;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content label {
    font-weight: bold;
    color: #555;
}

.modal-content input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-content button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button[type="submit"]:hover {
    background-color: var(--primary-color-hover);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* member list style */
.members-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.members-section h3 {
    margin-bottom: 15px;
    color: #333;
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.member-name {
    font-size: 0.9em;
    color: var(--text-color);
} 